import bpy
import math
bpy.ops.mesh.primitive_cylinder_add(vertices=32,align='WORLD',
location=(0.0, 0.0, 1.0), rotation=(0.0, math.pi/1, 0.0),
scale=(1.0, 1.0, 4.0))